﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cofe.Core
{
    /// <summary>
    /// Specify how IPropertyCache handle the property.
    /// </summary>
    public class CachableAttribute : Attribute
    {
        public CachableAttribute(PropertyCacheOptions cacheOptions = PropertyCacheOptions.Default, 
            DatabaseCacheOptions dbCacheOptions = DatabaseCacheOptions.CachableORM)
        {
            CacheOptions = cacheOptions;
            DatabaseCacheOptions = dbCacheOptions;
        }

        public PropertyCacheOptions CacheOptions { get; private set; }
        public DatabaseCacheOptions DatabaseCacheOptions { get; private set; }
    }
}
